package com.chao.java.ai.langchain4j.controller;

import dev.langchain4j.model.openai.OpenAiChatModel;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class ChatController {

//    private final OpenAiChatModel openAiChatModel;
//
//
//    @GetMapping("/chat")
//    public String model(@RequestParam(value = "message", defaultValue = "Hello") String message) {
//        return openAiChatModel.chat(message);
//    }
}